Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main: check if local storage is mounted when --local flag is used (HMS-3792) #259

Closed
wants to merge 3 commits into from

Conversation

kingsleyzissou
Copy link
Contributor

This PR is a follow up to #120 and addresses some of the comments on the PR.

The most notable change is switching to use local storage as the default. A helper function is introduced to check if the image is in the local store and, if not, copy it into the store.

bib/internal/util/util.go Outdated Show resolved Hide resolved
bib/internal/util/util.go Outdated Show resolved Hide resolved
bib/internal/util/util.go Outdated Show resolved Hide resolved
bib/internal/util/util.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! Looks generally sane and should be a nice improvement.

@ochosi ochosi changed the title main: use local storage as the default main: use local storage as the default (HMS-3235) Mar 13, 2024
bib/cmd/bootc-image-builder/main.go Outdated Show resolved Hide resolved
bib/cmd/bootc-image-builder/main.go Outdated Show resolved Hide resolved
@ochosi ochosi changed the title main: use local storage as the default (HMS-3235) main: use local storage as the default (HMS-3792) Mar 19, 2024
A local container image from the host is being used.
Since we are using local storage by default, Wwe should fail early if it
hasn't been mounted. Some undefined behaviour has been seen when local storage
volume hasn't been mounted and the `--local` flag has been provided.
@kingsleyzissou kingsleyzissou changed the title main: use local storage as the default (HMS-3792) main: check if local storage is mounted when --local flag is used (HMS-3792) Mar 20, 2024
@kingsleyzissou
Copy link
Contributor Author

Closing in favour of #293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants